package com.heartline.exception;

/**
 * 业务异常
 * Created by zhy on 2018/6/7.
 */
public class ServiceException extends RuntimeException {

    private Err err;

    public ServiceException(Err err) {
        this.err = err;
    }

    public int code() {
        return err.code();
    }

    public String msg() {
        return err.msg();
    }
}
